package com.qfedu.mtl.dao;

import com.qfedu.mtl.entity.Roles;
import com.qfedu.mtl.vo.TreeVO;

import java.util.List;

/**
 * @version v1.0
 * @Date 2023/9/26 19:22
 * @Author DARKER
 * @Email 1402216045@qq.com
 */
public interface RoleDao {
    boolean checkInfoIsRepeat(Roles roles);

    int insert(Roles roles);

    int delete(String id);

    int update(Roles roles);

    List<Roles> findAll(Integer page, Integer size, Roles role);

    int selectTotal(Roles role);

    List<Roles> findSimpleRole();

    void delBatchById(List<Integer> ids);

    List<TreeVO> selectAllMenus();

    void insertRoleMenu(Integer roleId, List<Integer> menuIds);
}
